From: Joey Hess Date: Wed, 29 Jan 2025 19:36:41 +0000 (-0400) Subject: fix windows build X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~6^2~183^2~6 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1b7293fb674588594f3163775a5b8d37cd4dc49d;p=git-annex.git fix windows build --- diff --git a/Utility/OsPath.hs b/Utility/OsPath.hs index 9fa4e0f57e..59302cd53e 100644 --- a/Utility/OsPath.hs +++ b/Utility/OsPath.hs @@ -43,7 +43,7 @@ fromOsPath :: OsPath -> RawFilePath -- On Windows, OsString contains a ShortByteString that is -- utf-16 encoded. So have to convert the input from that. -- This is relatively expensive. -fromOsPath = toRawFilePath . cWcharsToChars_UCS2 . BS16.unpack . getWindowsString +fromOsPath = toRawFilePath . cWcharsToChars_UCS2 . BS16.unpack . getWindowsString . getOsString #else fromOsPath = S.fromShort . getPosixString . getOsString #endif